<%@include file="/header.jsp" %>
<c:url value="/backend/CategoryAdmin" var="backUrl" />


<div id="breadcrump">
    <ul id="breadcrump-list">
        <li>&raquo; Categorie wijzigen</li>
    </ul>
</div>

<c:choose>
    <c:when test="${param.success == 'true'}">
        Categorie is gewijzigd! <a href="${backUrl}">Terug</a>
    </c:when>
    <c:when test="${category == null}">
        Categorie niet gevonden. <a href="${backUrl}">Terug</a>
    </c:when>
    <c:when test="${category != null}">
        <form action="" method="POST">
            <table border="1">
                <tr>
                    <td><label for="txtName">Naam</label></td>
                    <td><input type="text" name="name" value="${fn:escapeXml(category.name)}" id="txtName"></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" value="Opslaan"></td>
                </tr>
            </table>
        </form>
        <a href="${backUrl}">Terug</a>
    </c:when>
</c:choose>

<%@include file="/footer.jsp" %>